﻿using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HlELock.Domain.Entities
{
    /// <summary>
    /// 本地注册信息
    /// </summary>
    public class HotelInfo : EntityBase
    {
        /// <summary>
        /// 企业或个人名称
        /// </summary>
        [MaxLength(64)]
        public string CompanyName { get; set; }

        /// <summary>
        /// 统一信用代码/身份证
        /// </summary>
        [MaxLength(64)]
        public string UniformCreditCode { get; set; }

        /// <summary>
        /// 法人代表
        /// </summary>
        [MaxLength(32)]
        public string Legal { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        [MaxLength(32)]
        public string CellPhone { get; set; }

        /// <summary>
        /// 座机
        /// </summary>
        [MaxLength(32)]
        public string HomePhone { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [MaxLength(64)]
        public string ProjectName { get; set; }

        /// <summary>
        /// 所属省
        /// </summary>
        [MaxLength(32)]
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [MaxLength(32)]
        public string City { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        [MaxLength(32)]
        public string Counties { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        [MaxLength(256)]
        public string Address { get; set; }

        /// <summary>
        /// 酒店编号
        /// </summary>
        [MaxLength(16)]
        public string HotelCode { get; set; }

        /// <summary>
        /// 经销商编号 
        /// </summary>

        [MaxLength(16)]
        public string AgencyCode { get; set; }

        /// <summary>
        /// 经销商名称
        /// </summary>

        [MaxLength(32)]
        public string AgencyName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        [MaxLength(128)]
        public string Password { get; set; }

        /// <summary>
        /// 酒店类型
        /// </summary>
        public HotelType HotelType { get; set; }

        /// <summary>
        /// 扇区
        /// </summary>
        [MaxLength(50)]
        public string Sector { get; set; }

        public int ProvinceCode { get; set; }
        public int CityCode { get; set; }
        public int CountiesCode { get; set; }
    }

    public enum HotelType
    {
        企业,
        个人
    }
}
